# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: team/kde <bribbers@disroot.org>

# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=maui
pkgname=mauikit-accounts
pkgver=4.0.0
pkgrel=0
pkgdesc="MauiKit Utilities to handle User Accounts"
# armhf blocked by extra-cmake-modules
arch="all !armhf"
url="https://mauikit.org/"
license="GPL-2.0-or-later"
depends="kirigami"
depends_dev="
	kconfig-dev
	kcoreaddons-dev
	ki18n-dev
	mauikit-dev
	qt6-qtbase-dev
	qt6-qtdeclarative-dev
	"
makedepends="$depends_dev
	extra-cmake-modules
	samurai
	"
_repo_url="https://invent.kde.org/maui/mauikit-accounts.git"
source="https://download.kde.org/stable/maui/mauikit-accounts/$pkgver/mauikit-accounts-$pkgver.tar.xz"
subpackages="$pkgname-dev $pkgname-lang"
options="!check" # no tests

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
5bdf114f5893a31ccb6937651b5770cf4a4434c79cc09ec5db803715965fed55b80558bb1bc7120c569a85f88c6ab38dc9c7c83bf8f1bd169d1094b127943821  mauikit-accounts-4.0.0.tar.xz
"
